package src.main.java.org.oop.interfaceDemo2;

import src.main.java.org.oop.override.A;

import java.util.ArrayList;

public class ClassManager {
    private ArrayList<Student> students = new ArrayList<>();
    private StudentOperator studentOperator = new StudentOperatorImpl2();

    public ClassManager(){
        students.add(new Student("迪丽热巴",'女',99));
        students.add(new Student("张思",'女',98));
        students.add(new Student("汪群",'男',95));
        students.add(new Student("李通",'男',94));
        students.add(new Student("张伟",'男',93));
    }

    public void printInfo(){
        studentOperator.printAllInfo(students);
    }
    public void printScore(){
        studentOperator.printAvgScore(students);
    }
}
